package com.enjoyor.soa.traffic.core.ping.mapper.impl;

import com.enjoyor.soa.traffic.core.ping.constant.DevStatusInfoSqlId;
import com.enjoyor.soa.traffic.core.ping.domain.DevStatusInfo;
import com.enjoyor.soa.traffic.core.ping.mapper.IDevStatusInfoMapper;
import com.enjoyor.soa.traffic.frame.support.mybatis.mapper.impl.BaseMapper;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class DevStatusInfoMapper extends BaseMapper<DevStatusInfo> implements IDevStatusInfoMapper {

	@Override
	public List<DevStatusInfo> selectDevStatusInfoList(Map<String, Object> map){
    	return sqlSessionTemplate.selectList(getSqlName(DevStatusInfoSqlId.SQL_SELECT_LIST), map);
    }

	@Override
    public int insertDevStatusHis(DevStatusInfo devStatusInfo){
         return sqlSessionTemplate.insert(getSqlName(DevStatusInfoSqlId.SQL_INSERT_HIS), devStatusInfo);
    }
	
	@Override
	public int updateSbjkDevStatus(DevStatusInfo devStatusInfo){
        return sqlSessionTemplate.update(getSqlName(DevStatusInfoSqlId.SQL_UPDATE_SBJK), devStatusInfo);
   }
}
